<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Welcome to <%= title %></title>

    <!-- Bootstrap Core CSS -->
    <link href="/stylesheets/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/stylesheets/metisMenu.min.css" rel="stylesheet">

    <!-- Timeline CSS -->
    <link href="/stylesheets/timeline.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/stylesheets/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/stylesheets/font-awesome.min.css" rel="stylesheet" type="text/css">

    <link rel="stylesheet" href="/stylesheets/style.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">

            <%- include('public_header') -%>
            <%- include('public_sidebar') -%>
        </nav>

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">写文章</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                            <div class="row">
                                <form role="form" method="post" action="/admin/article/post" >
                                    <div class="col-lg-9">
                                            <div class="form-group">
                                                <label>标题</label>
                                                <input class="form-control" name="title">
                                                <p class="help-block"></p>
                                            </div>
                                            <div class="form-group">
                                                <label>正文</label>
                                                <textarea class="form-control" id="content" name="content" rows="20"></textarea>
                                            </div>
                                            <div class="form-group">
                                                <label>别名</label>
                                                <input class="form-control" name="alias">
                                                <p class="help-block"></p>
                                            </div>
                                            <div class="form-group">
                                                <label>标签</label>
                                                <input name="tags" placeholder="多个标签用（,）分隔" class="form-control">
                                                <p class="help-block"></p>
                                            </div>
                                            <div class="form-group">
                                                <label>摘要</label>
                                                <textarea class="form-control" rows="10"></textarea>
                                            </div>
                                            <button type="submit" class="btn btn-primary">发布</button>
                                            <button type="reset" class="btn btn-default">取消</button>
                                    </div>
                                    <!-- /.col-lg-6 (nested) -->
                                    <div class="col-lg-3">
                                        <div class="form-group">
                                            <label for="disabledSelect">分类</label>
                                            <select id="disabledSelect" class="form-control" name="cat_id">
                                                <option value="1">日志</option>
                                                <option value="2">PHP</option>
                                                <option value="3">Linux</option>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                            <label for="disabledSelect">状态</label>
                                            <select name="status" id="disabledSelect" class="form-control">
                                                <option value="1">公开</option>
                                                <option value="2">草稿</option>
                                                <option value="3">审核</option>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                            <label for="disabledSelect">作者</label>
                                            <select id="disabledSelect" class="form-control" name="user_id">
                                                <option value="1">admin</option>
                                                <option value="2">test</option>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                            <label or="disabledSfelect">文章置顶</label>
                                            <select id="disabledSelect" class="form-control" name="top_type">
                                                <option selected="selected" value="0">不置顶</option>
                                                <option value="1">全站置顶</option>
                                                <option value="2">首页置顶</option>
                                                <option value="3">分类页置顶</option>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                           <label>发布时间</label>
                                            <input id="" class="form-control" name="post_time">
                                        </div>
                                        <div class="form-group">
                                            <label class="checkbox-inline">
                                              <input type="checkbox" id="inlineCheckbox3" name="allow_comment" checked="checked" value="1"> 允许评论
                                            </label>
                                        </div>
                                    </div>
                                    <!-- /.col-lg-6 (nested) -->
                                </form>
                            </div>
                            <!-- /.row (nested) -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="/javascripts/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="/javascripts/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="/javascripts/metisMenu.min.js"></script>

    <!-- Morris Charts JavaScript -->
    <script src="/javascripts/raphael-min.js"></script>
    <script src="/javascripts/morris.min.js"></script>
    <script src="/javascripts/morris-data.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="/javascripts/sb-admin-2.js"></script>
    
    <!-- Ueditor JavaScript -->
    <script src="/ueditor/ueditor.config.js"></script>
    <script src="/ueditor/ueditor.all.js"></script>
    <script type="text/javascript">
        var ue = UE.getEditor('content',{
        });
    </script>

</body>

</html>
